package string;

import classics.Array;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String s = "abc123efg456hij";
        String[] data = s.split("[0-9]+");
        System.out.println(Arrays.toString(data));
        String s1 =  "123abc123efg456hij333";
        System.out.println(Arrays.toString(s1.split("[0-9]")));
        System.out.println(s1.split("[0-9]").length);
    }
}
